<html>
<head>
<style type="text/css">

table{	
border-collapse:collapse;	
}
tr.tables
{
border:1px solid darkgrey;
background-color:black;
color:white;
}

tr.attributes
{
border:1px solid white;
background-color:#303030;
color:white;
}
tr.rowa
{
border:1px solid white;
background-color:#D0D0D0;
color:black;
}
tr.rowb
{
border:1px solid white;
background-color:white;
color:black;
}
</style>
</head>
<body>

<?php

print "<div align=center><form action=search.php method=post>";
print "<input type=text maxlength=100 name=query size='150' value=\"". htmlspecialchars($raw_query)."\"></input>";
print "<input type=submit  value=Run></input></form><br>";

//SOuRCE FOR LINKS HERE
print "<div align=center><table width=800>
		<tr class=rowb>
		<td><a href=addmovie.php><b>Add Movie</b></a></td>
		<td><a href=addmovieactor.php><b>Add Movie Actor</b></a></td>
		<td><a href=addmoviedirector.php><b>Add Movie Director</b></a></td>
		<td><a href=add_actor_director.php><b>Add Actor or Director</b></a>	</td>
		</tr>
		</table></div>";
		
$id=$_GET["id"];
if($id == "Horror"){
	$desc="Terrifying movies are given the Horror genre. Expect blood, guts and sheer terror.";
}
else if($id == "Romance"){
	$desc="Prepare to cry. Or fall alseep.";
}
else if($id == "Comedy"){
	$desc="You'll be in stitches.";
}
else if($id == "Fantasy"){
	$desc="Enter the world of imagination.";
}
else if($id == "Sci-Fi"){
	$desc="Travel through space and own a robot.";
}
else if($id == "Drama"){
	$desc="Things are getting serious.";
}

if($id != null && $desc != null){
	print "<h1>$id</h1>
		   <img src=\"data/$id.png\"/><br>
		   <h3>$desc</h3>";
}
else if($id != null){
	print "<h1>$id</h1>
		   <h3>No Information on this genre. Bug the sysadmin :P</h3>";
}
print "</div>"
?>
